<?php
require_once 'cf/params.inc';
require_once 'cf/shop.inc';

$basket = new Basket;
	
if ($par->exist('product_id'))
{
	$basket->add(
		$par->get('product_id'), 
		$par->exist('option_id') ? $par->get('option_id') : 0,
		1
	);
}

//send back number of products and sum
echo $basket->totalProducts();
echo '|';
echo $basket->totalSum();
?>